package com.doodle.common.data;

public interface DataAdapter {
	
	public static interface DataLoadedListener {
		public void onDataLoaded(int index);
	}
	
	public int size();
	public void prepare(int index);
	public int start(int index);
	public void cancel(int index);
	public void free(int index);
	public void remove(int index);
	public long getDataId(int index);
	public Object getDataObject(int index);
	public void setDataObject(int index, Object data);
	public void freeDataObject(Object data);
}
